using System;
using System.Configuration;

namespace Microsoft.Health.Samples.PatientConnect.TreyResearch.HealthVaultAdapter
{
    public static class SchedulerConfig
    {
        public static readonly int Days = int.Parse(GetConfigValues("Days"));
        public static readonly int Hours = int.Parse(GetConfigValues("Hours"));
        public static readonly int Minutes = int.Parse(GetConfigValues("Minutes"));
        public static readonly int Seconds = int.Parse(GetConfigValues("Seconds"));
        public static readonly string LogFile = GetConfigValues("LogFile");
        public static readonly string LastRunLogFile = GetConfigValues("LastRunLogFile");
        public static readonly string PatientXmlFilePath = GetConfigValues("PatientXmlFilePath");
        public static readonly string PracticeXmlFilePath = GetConfigValues("PracticesXmlFilePath");

        private static string GetConfigValues(string key)
        {
            return ConfigurationManager.AppSettings[key].ToString();
        }
    }

}
